import {Component} from "@angular/core";
import {HttpClient} from "@angular/common/http";
import {AppUrl} from "../../../app.url";

@Component({
    templateUrl:'redeem-rule.component.html',
    styleUrls:['./redeem-rule.component.less']
})

export class RedeemRuleComponent{

    ruleList:any=[];
    constructor(private http:HttpClient){
        this.http.post(AppUrl.dict.redeemTypeUrl,{type:'redeem_type'}).subscribe(data=>{
            console.log(data);
            let temp:any=data;
            this.ruleList=temp.data;
        });
    }
}
